import { axios } from '@/utils/request'

/**
 * 查询库位
 *
 * @author Eric
 * @date 2021-04-03 19:11:26
 */
export function storehouseLocationPage (parameter) {
  return axios({
    url: '/storehouseLocation/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 库位列表
 *
 * @author Eric
 * @date 2021-04-03 19:11:26
 */
export function storehouseLocationList (parameter) {
  return axios({
    url: '/storehouseLocation/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加库位
 *
 * @author Eric
 * @date 2021-04-03 19:11:26
 */
export function storehouseLocationAdd (parameter) {
  return axios({
    url: '/storehouseLocation/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑库位
 *
 * @author Eric
 * @date 2021-04-03 19:11:26
 */
export function storehouseLocationEdit (parameter) {
  return axios({
    url: '/storehouseLocation/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除库位
 *
 * @author Eric
 * @date 2021-04-03 19:11:26
 */
export function storehouseLocationDelete (parameter) {
  return axios({
    url: '/storehouseLocation/delete',
    method: 'post',
    data: parameter
  })
}
